package cn.edu.lingnan.servlet;

import java.io.IOException;
import java.util.Vector;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import cn.edu.lingnan.dao.StudentDAO;
import cn.edu.lingnan.dto.Student;

public class DeleteStuServlet extends HttpServlet {
	
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
//		///1
//		String sid=req.getParameter("sid");
//		//2
//		StudentDAO sd=new StudentDAO();
//		boolean flag=sd.delete(sid);
//		Vector<Student> v=sd.findAllStudent();
//	    HttpSession session=req.getSession();
//	    session.setAttribute("allStu", v);
//		//
//		if(flag){
//			resp.sendRedirect(req.getContextPath()+"admin/allStu.jsp");
//		}else{
//			resp.sendRedirect(req.getContextPath()+"error.jsp");
//		}
	}

}
